package com.kingyun.gpsinspection.purificationservice.dao.mapper.tdm;


import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.Hazard;
import com.kingyun.gpsinspection.purificationservice.facade.model.tdm.HazardVo;

import java.util.List;

public interface TdmHazardMapper {
    /**
     * 根据ID删除危险信息
     * @param record
     * @return
     */
    int deleteByPrimaryKey(Hazard record);

    /**
     * 新增危险信息
     * @param record
     * @return
     */
    int insert(Hazard record);

    int insertSelective(Hazard record);

    /**
     * 根据ID查询危险信息
     * @param hazardId
     * @return
     */
    Hazard selectByPrimaryKey(String hazardId);

    /**
     * 修改设备信息
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(Hazard record);

    /**
     * 修改设备信息
     * @param record
     * @return
     */
    int updateByPrimaryKey(Hazard record);

    int insertNew(Hazard record);

    int updateByPrimaryKeyNew(Hazard hazard);

    HazardVo selectByPrimaryKeyNew(String hazardId);

    Integer queryCount(Hazard record);

    List<Hazard> queryList(Hazard record);

    int updateStateByIds(List<String> list);
}